@import "./common.scss";

.banner{
  .carousel{
    .item{
      img{
        width: 100%;
      }
    }
    .carousel-control{
      background-image: none;
    }
  }
}

.engine{
  padding-top: 105px;
  // padding-bottom: 35px;
  background-color: #fbfaf7;

  .engine-title{
    margin-bottom: 34px;
    font-size: 48px;
    color:#0078d7;
    font-weight: bold;
  }
  .engine-intro{
    font-size: 30px;
    color: #666;
    margin-bottom: 78px;
  }
  .char{
    margin-bottom: 46px;
    display: flex;
    align-items: center;
    align-items: flex-start;
    // width: 300px;
    
    .char-img{
      margin-right: 14px;
      position: relative;
      padding-top: 22%;
      width: 22%;
      // height: 64px;
      background-color: #0078d7;
      border-radius: 5px;
      flex: 0 0 auto;

      img{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 50%;
      }
    }

    &:nth-child(2),&:nth-child(4){
      img{
        width: 70%;
      }
    }

    &:nth-child(3){
      img{
        width: 60%;
      }
    }

    

    .char-text{
      font-size: 19px;
      color:#333;
      font-weight: 500;

      p:last-child{
        margin-bottom: 0;
        font-size: 14px;
        color: #666;
      }
    }
  }

  .s-phone{
    width: 100%;
  }

  .engine-box{
    display: flex;
    flex-wrap: wrap;
  }
}

.adv{
  padding-bottom: 105px;
  
  background-color: #ffffff;

  .adv-title{
    margin-bottom: 34px;
    font-size: 48px;
    font-weight: bold;
    color: #8fc31f;
  }




  .s-phone{
    margin-top: 72px;
    width: 100%;
  }

  .adv-wrapper{
    li{
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      .adv-img{
        position: relative;
        padding-top: 9%;
        
        width: 9%;
        height: 54px;
        background-color: #8fc31f;
        border-radius: 50%;
        img{
          position: absolute;
          top: 50%;
          left: 50%;
          width: 55%;
          transform: translate(-50%,-50%);
  
        }
      }
      .adv-img+p{
        margin-bottom: 0;
        margin-left: 12px;
        font-size: 14px;
        color: #666666;
      }
      &:nth-child(3){
        .adv-img{
          img{
            width: 45%;
          }
        }
      }
    }
    
  }
}


.product{
  padding-top: 115px;
  padding-bottom: 145px;
  background-color: #0079d7;
  color: #ffffff;
  .container{
    h2{
      font-size: 48px;
      margin-bottom: 72px;
      margin-top: 0;
      text-align: center;
    }
    .product-box{
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      &::before,&::after{
        flex-basis: 100%;
      }
      .product-wrapper{
        margin-bottom: 76px;
        display: flex;
        justify-content: space-between;


        .img-box{
          position: relative;
          padding-top: 16%;
          width: 16%;
          img{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
          }
        }

        .product-text{
          font-size: 32px;
          flex: 0 0 78%;
          p:first-child{
            line-height: 100%;
          }
          
          p:last-child{
            font-size: 14px;
            line-height: 180%;
            word-break: break-all;
          }
        }
      }
    }
      

  }
}

.case{
  padding-top: 90px;
  padding-bottom: 38px;
  .container{
    .case-text{
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 34px;
      color: #2a2a2a;
      span:last-child{
        font-size: 14px;
      }
    }
    .case-box{
      margin-top: 45px;
    }

    .game-wrapper{
      margin-left: 8.33333%;
      display: flex;
      padding: 0;
      flex-wrap:wrap;
      justify-content: space-around;
      .game{
        margin-bottom: 12px;
        margin-left: 3%;
        flex:0 0 12%;
        text-align: center;
        img{
         width: 100%;
        }
      }
    }
  }
}

.coop{
  background-color: #f4f4f4;
  .container{
    h2{
      font-size: 30px;
      color: #2a2a2a;
      sub{
        font-size: 40%;
        color: #777;
      }
    }
    .coop-wrapper{
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      
      .coop-item{
        margin-top: 20px;
        flex: 0 0 15%;
        img{
          width: 100%;
        }
      }

      
    }

  }
}



@media screen and (max-width:992px){
  .engine{
    .engine-title{
      margin-bottom: 10px;
      font-size: 30px;

    }
    .engine-intro{
      margin-bottom: 20px;
      font-size: 20px;
    }
    

    
    
    .char{
      margin-bottom: 25px;
      .char-text{
        font-size: 14px;

        p:last-child{
          font-size: 12px;
        }
      }
    }

    .s-phone{
      vertical-align: bottom;
    }
  
  }
  .adv{
    padding-top: 40px;
    padding-bottom: 40px;
    .adv-title{
      font-size: 30px;
      margin-bottom: 10px;
    }

    .adv-wrapper{
      li{
        .adv-img{
          width: 13%;
          padding-top: 13%;
        }

        .adv-img+p{
          margin-bottom: 10px;
          font-size: 12px;
        }
      }
    }

    .s-phone{
      margin-top: 40px;
    }
  }
  .product{
    padding-top: 50px;
    padding-bottom: 20px;
    .container{
      h2{
        font-size: 30px;
        margin-bottom: 30px;
      }
      .product-box{
        .product-wrapper{
          margin-bottom: 20px;
          .product-text{
            font-size: 16px;
            p:last-child{
              font-size: 12px;
            }
          }
        }
      }
    }
  }

  .case{
    padding-top: 50px;
   .container{
    .case-box{
      margin-top: 20px;
    }
   }
  }
}

@media screen and (max-width:767px){
  .engine{
    padding-top:20px;
    padding-bottom: 20px;
    .phone-box{
      text-align: center;
      .s-phone{
        width: 50%;
      }
    }
    .char{
      margin-bottom: 20px;
    }
    .engine-title{
      font-size: 26px;
      text-align: center;
    }
    .engine-intro{
      text-align: center;
      font-size: 16px;
    }
  }

  .adv{
    .adv-title{
      text-align: center;
      font-size: 26px;
    }
   
  }

  .case{
    .container{
      .case-text{
        span:first-child{
          font-size: 30px;
        }
      }
      .game-wrapper{
        margin-top: 20px;
        margin-left: 0;
        justify-content: space-evenly;
        
        .game{
          margin-left: 0;
          padding-left: 2%;
          padding-right: 2%;
          flex-basis: 21%;
          font-size: 12px;
          img{
            // width: 50%;
          }
        }
        // .game:nth-child(1),.game:nth-child(7){
        //   margin-left: 1%;
        // }
      }

    }
  }
}

@media screen and (min-width:992px) and (max-width:1200px){
  .engine{
    .engine-intro{
      margin-bottom: 40px;
    }
    .engine-title{
      margin-bottom: 20px;
    }
    .char{
      margin-bottom: 25px;
    }
  }
  .product{
    padding-top: 60px;
    padding-bottom: 0;

    .container{
      h2{
        margin-bottom: 60px;

      }
      .product-box{
        .product-wrapper{
          margin-bottom: 50px;
        }
      }
    }
  }
}

